package com.foreknow.demo4;

public class C {
    public C(){
        System.out.println("----------");
    }

    public C(int a){
        this();//调用无参的构造器
        System.out.println(a);
    }

    public  C(String name,String pss){
        this(1);//调用一个参数的构造器
        System.out.println(name+"--"+pss);
    }

    public static void main(String[] args) {
        C c = new C("fender","123456");//调用两个参数的构造器
    }
}
